#!/usr/bin/bash

gsed -i 's/user = fpm/user = www/g' /opt/local/etc/php-fpm.d/www.conf
gsed -i 's|listen = 127.0.0.1:9000|listen = /var/run/php-fpm.sock|g' /opt/local/etc/php-fpm.d/www.conf

log "starting php-fpm"
/usr/sbin/svcadm enable php-fpm